/**--no-ignore */
import { Request, Response } from 'umi';

export default {
  'GET /admin/api/v1/order/getOrderById': (req: Request, res: Response) => {
    res.status(200).send({
      code: 0,
      msg: 'success',
      data: {
        orderDetail: {
          id: 1781315868966367200,
          userId: 1781238806195093500,
          productId: 11,
          productName: '酒',
          productCover:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
          count: 2,
          price: 1999,
          payMethod: '余额支付',
          receiverName: 'czx',
          receiverPhone: '18042060000',
          receiverAddress: 'xx便利店',
          status: 2,
          createTime: '2024-04-21T00:22:54.000+00:00',
          updateTime: '2024-04-20T16:22:56.000+00:00',
          payTime: '2024-04-21T00:23:51.000+00:00',
          description: '52°',
          imgs: [
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
          ],
          weight: 1,
          unit: 'kg',
          note: '好喝',
          content: '<p>saa</p>',
        },
      },
    });
  },

  'GET /order/api/v1/order/getMyOrder': (req: Request, res: Response) => {
    res.status(200).send({
      code: 0,
      msg: 'success',
      data: [
        {
          id: 1781315868966367200,
          userId: 1781238806195093500,
          productId: 11,
          productName: '酒',
          productCover:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
          count: 2,
          price: 1999,
          payMethod: '余额支付',
          receiverName: 'czx',
          receiverPhone: '18042060000',
          receiverAddress: 'xx便利店',
          status: 2,
          createTime: '2024-04-21T00:22:54.000+00:00',
          updateTime: '2024-04-20T16:22:56.000+00:00',
          payTime: '2024-04-21T00:23:51.000+00:00',
          description: '52°',
          imgs: [
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
          ],
          weight: 1,
          unit: 'kg',
          note: '好喝',
          content: '<p>saa</p>',
        },
        {
          id: 178131586896637200,
          userId: 1781238806195093500,
          productId: 11,
          productName: '酒',
          productCover:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
          count: 2,
          price: 1999,
          payMethod: '余额支付',
          receiverName: 'czx',
          receiverPhone: '18042060000',
          receiverAddress: 'xx便利店',
          status: 2,
          createTime: '2024-04-21T00:22:54.000+00:00',
          updateTime: '2024-04-20T16:22:56.000+00:00',
          payTime: '2024-04-21T00:23:51.000+00:00',
          description: '52°',
          imgs: [
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
          ],
          weigh: 1,
          unit: 'kg',
          note: '好喝',
          content: '<p>saa</p>',
        },
        {
          id: 121315868966367200,
          userId: 1781238806195093500,
          productId: 11,
          productName: '酒',
          productCover:
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
          count: 2,
          price: 1999,
          payMethod: '余额支付',
          receiverName: 'czx',
          receiverPhone: '18042060000',
          receiverAddress: 'xx便利店',
          status: 2,
          createTime: '2024-04-21T00:22:54.000+00:00',
          updateTime: '2024-04-20T16:22:56.000+00:00',
          payTime: '2024-04-21T00:23:51.000+00:00',
          description: '52°',
          imgs: [
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
          ],
          weigh: 1,
          unit: 'kg',
          note: '好喝',
          content: '<p>saa</p>',
        },
      ],
    });
  },

  'POST /admin/api/v1/order/getOrderByCondition': (req: Request, res: Response) => {
    res.status(200).send({
      code: 0,
      msg: 'success',
      data: {
        orderList: [
          {
            id: 124538598491562050,
            userId: 1781238806195093500,
            productId: 11,
            productName: '酒',
            productCover:
              'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            infoId: 1781315868966367200,
            count: 2,
            price: 3998,
            payMethod: '余额支付',
            receiverName: 'czx',
            receiverPhone: '18042060000',
            receiverAddress: 'xx便利店',
            status: 2,
            createTime: '2024-04-21T00:22:54.000+00:00',
            updateTime: '2024-04-20T16:22:56.000+00:00',
            payTime: '2024-04-21T00:23:51.000+00:00',
            isDelete: true,
          },
          {
            id: 1024537767817736300,
            userId: 0,
            productId: 0,
            productName: '香蕉',
            productCover:
              'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
            infoId: 4485428189423616,
            count: 1,
            price: 10.98,
            payMethod: '余额支付',
            receiverName: '睿哥',
            receiverPhone: '15527793669',
            receiverAddress: '翻斗花园第一单元',
            status: 1,
            createTime: '2024-04-18T16:41:13.000+00:00',
            updateTime: '2024-04-18T16:41:13.000+00:00',
            payTime: '2024-04-18T16:41:38.000+00:00',
            isDelete: false,
          },
          {
            id: 2024538806815445000,
            userId: 4485554740750336,
            productId: 9,
            productName: '酒',
            productCover:
              'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            infoId: 1781315868966367200,
            count: 1,
            price: 1999,
            payMethod: '微信支付',
            receiverName: '云天',
            receiverPhone: '18107124185',
            receiverAddress: 'xx便利店',
            status: 2,
            createTime: '2024-04-21T06:30:35.000+00:00',
            updateTime: '2024-04-21T06:30:37.000+00:00',
            payTime: '2024-04-21T06:36:11.000+00:00',
            isDelete: false,
          },
          {
            id: 2024538808813744000,
            userId: 4485554740750336,
            productId: 9,
            productName: '酒',
            productCover:
              'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            infoId: 1781315868966367200,
            count: 2,
            price: 3998,
            payMethod: '微信支付',
            receiverName: '云天',
            receiverPhone: '18107124185',
            receiverAddress: 'xx便利店',
            status: 0,
            createTime: '2024-04-21T06:38:43.000+00:00',
            updateTime: '2024-04-21T06:38:44.000+00:00',
            payTime: '2024-04-21T06:39:19.000+00:00',
            isDelete: false,
          },
          {
            id: 2024538809119985700,
            userId: 4485554740750336,
            productId: 9,
            productName: '酒',
            productCover:
              'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            infoId: 1781315868966367200,
            count: 10,
            price: 19990,
            payMethod: '余额支付',
            receiverName: '云天',
            receiverPhone: '18107124185',
            receiverAddress: 'xx便利店',
            status: 2,
            createTime: '2024-04-21T06:39:58.000+00:00',
            updateTime: '2024-04-21T06:39:59.000+00:00',
            payTime: '2024-04-21T06:41:34.000+00:00',
            isDelete: false,
          },
          {
            id: 2024538917207711700,
            userId: 1781684003255750700,
            productId: 14,
            productName: '酒qssqdq',
            productCover:
              'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/resource/avatar/4485554740750336/v1.1713490181913.jpg',
            infoId: 1782043055146844200,
            count: 1,
            price: 1999,
            payMethod: '微信支付',
            receiverName: 'Wust18186243385',
            receiverPhone: '18186243385',
            receiverAddress: 'xx便利店',
            status: 2,
            createTime: '2024-04-21T13:59:46.000+00:00',
            updateTime: '2024-04-21T14:04:22.000+00:00',
            payTime: '2024-04-21T14:01:45.000+00:00',
            isDelete: true,
          },
          {
            id: 2024539110702989300,
            userId: 1781684003255750700,
            productId: 2,
            productName: '香蕉',
            productCover:
              'https://haluo-store.oss-cn-wuhan-lr.aliyuncs.com/default/%E9%BB%98%E8%AE%A4%E5%95%86%E5%93%81%E5%9B%BE%E7%89%87.jpg',
            infoId: 4485428189423616,
            count: 3,
            price: 23.94,
            payMethod: '微信支付',
            receiverName: 'Wust18186243385',
            receiverPhone: '18186243385',
            receiverAddress: 'xx便利店',
            status: 2,
            createTime: '2024-04-22T03:07:06.000+00:00',
            updateTime: '2024-04-22T03:07:13.000+00:00',
            payTime: '2024-04-22T03:07:13.000+00:00',
            isDelete: false,
          },
        ],
      },
    });
  },
};
